<template>
  <div class="close">
    <div class="icon-close"></div>
    <div class="icon-close rotate"></div>
  </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
// 关闭按钮
.close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 3px;
  right: 3px;
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background-color: rgba(0,0,0,.5);
  z-index: 2;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  .icon-close {
    display: block;
    width: 15px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
  }
  .rotate {
    position: absolute;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }
}
</style>
